Skip to content

Conversation

@comandeo-mongo
Copy link
Contributor

No description provided.

@comandeo-mongo comandeo-mongo marked this pull request as ready for review May 14, 2024 07:30
@comandeo-mongo comandeo-mongo requested a review from jamis May 14, 2024 07:30
Copy link
Contributor

@jamis jamis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I love this refactoring -- splitting the timeout logic to a superclass is a great idea. 🎉

# frozen_string_literal: true

module Unified
module AmbiguousOperations
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Elegant solution to an inelegant problem. 👍

rescue Mongo::Error, bson_error, Mongo::Auth::Unauthorized, ArgumentError => e
if expected_error.use('isTimeoutError')
unless Mongo::Error::TimeoutError === e
raise e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this might be a debugging artifact? 👀

@comandeo-mongo comandeo-mongo merged commit aceef6e into mongodb:csot May 16, 2024
@comandeo-mongo comandeo-mongo deleted the 3379-csot-bulk-writes branch May 16, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants